//package com.ruoyi.common.utils.fabric;
//
//import org.hyperledger.fabric.sdk.HFClient;
//import org.hyperledger.fabric.sdk.User;
//import org.hyperledger.fabric.sdk.exception.CryptoException;
//import org.hyperledger.fabric.sdk.exception.InvalidArgumentException;
//import org.hyperledger.fabric.sdk.security.CryptoSuite;
//
//import java.lang.reflect.InvocationTargetException;
//
//public class FabricClient {
//    private HFClient instance;
//
//    /**
//     * Return an instance of HFClient.
//     *
//     * @return
//     */
//    public HFClient getInstance() {
//        return instance;
//    }
//
//    /**
//     * Constructor
//     *
//     * @param context
//     * @throws CryptoException
//     * @throws InvalidArgumentException
//     * @throws InvocationTargetException
//     * @throws NoSuchMethodException
//     * @throws ClassNotFoundException
//     * @throws InstantiationException
//     * @throws IllegalAccessException
//     */
//    public FabricClient(User context) throws CryptoException, InvalidArgumentException, IllegalAccessException, InstantiationException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException {
//        CryptoSuite cryptoSuite = CryptoSuite.Factory.getCryptoSuite();
//        // setup the client
//        instance = HFClient.createNewInstance();
//        instance.setCryptoSuite(cryptoSuite);
//        instance.setUserContext(context);
//    }
//}
